package com.zhuliwei.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuliwei.domain.ResponseResult;
import com.zhuliwei.domain.dto.AddArticleDto;
import com.zhuliwei.domain.dto.ArticleDto;
import com.zhuliwei.domain.entity.Article;
import com.zhuliwei.domain.vo.PageVo;

/**
 * 文章接口
 *
 * @author 朱力维
 * @time 2022/10/7 10:48
 **/
public interface ArticleService extends IService<Article> {
    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, String categoryId, String paramsId);

    ResponseResult getArticleDetail(String id);

    ResponseResult updateViewCount(String id);

    ResponseResult getArticleData();

    ResponseResult<PageVo> pageArticleList(Integer pageNum, Integer pageSize, ArticleDto articleDto);

    ResponseResult add(AddArticleDto article);

    ResponseResult updateArticle(AddArticleDto article);

    ResponseResult newArticleList();


    ResponseResult search(String keyword);

    ResponseResult getMyLikes();

}
